<?xml version="1.0" encoding="utf-8" ?>
<Recipe xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
Name="RibbonSampleTab"
xmlns="http://schemas.microsoft.com/pag/gax-core"
Bound="false">
	<DocumentationLinks>
		<Link Caption="MSDN: Walkthrough: Add a Tab to the Server Ribbon" Url="http://msdn.microsoft.com/en-us/library/ff407250.aspx" Kind="Documentation"/>
		<Link Caption="MSDN: Server Ribbon XML" Url="http://msdn.microsoft.com/en-us/library/ff407290.aspx" Kind="Documentation"/>
		<Link Caption="MSDN: Default Server Ribbon Customization Locations" Url="http://msdn.microsoft.com/en-us/library/ee537543.aspx" Kind="Documentation"/>
	</DocumentationLinks>
  <xi:include href="../../../TypeAlias.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
  <Caption>Sample: Ribbon Tab with 3 buttons</Caption>
  <Description>Adds a sample tab which contains 3 buttons</Description>
  <HostData Priority="3500">
    <Icon File="Help/Icons/icon_CustomActions.ico" />
	  <CommandBar Menu="SPSFProjectCustomActions"/>
	  <CommandBar Menu="SPSFFolderCustomActions"/>
    <spsf:MetaData
      Visible="true"
      BindingType="ElementManifestReference"
      BindingTypeTemplate="ElementManifestReferenceTemplate"
      TestType="BaseSiteFeatureRecipeRunner"
      Enabled="true"
      CreateVSTemplate="true"
	    SharePointVersions="14"
      FeatureScopes="Web;Site;WebApplication;Farm"
      Category="CustomActions" xmlns:spsf="http://www.spalmblogger.de">
      <spsf:Authors>
        <spsf:Author>Torsten Mandelkow</spsf:Author>
      </spsf:Authors>
      <spsf:VersionHistory>
        <spsf:VersionHistoryEntry>1.0 Initial Recipe</spsf:VersionHistoryEntry>
      </spsf:VersionHistory>
      <spsf:WebPageContent>
        <![CDATA[]]>
      </spsf:WebPageContent>
		<spsf:Test>
			<spsf:TestCases>
				<spsf:TestCase Name="DefaultRibbonTab">
					<spsf:TestCaseArguments>
						<spsf:TestCaseArgument Name="RibbonActionName">RibbonSample</spsf:TestCaseArgument>
						<spsf:TestCaseArgument Name="RibbonActionTitle">Custom Tab</spsf:TestCaseArgument>
						<spsf:TestCaseArgument Name="CustomActionRegistrationType">List</spsf:TestCaseArgument>
						<spsf:TestCaseArgument Name="CustomActionRegistrationId">101</spsf:TestCaseArgument>
					</spsf:TestCaseArguments>
				</spsf:TestCase>
				<spsf:TestCase Name="SampleRibbonTab" Type="SolutionTestCase">
					<spsf:TestCaseArguments>
						<spsf:TestCaseArgument Name="RibbonActionName">RibbonTabWith3Buttons</spsf:TestCaseArgument>
						<spsf:TestCaseArgument Name="RibbonActionTitle">Sample Tab</spsf:TestCaseArgument>
						<spsf:TestCaseArgument Name="CustomActionRegistrationType">List</spsf:TestCaseArgument>
						<spsf:TestCaseArgument Name="CustomActionRegistrationId">101</spsf:TestCaseArgument>
						<spsf:TestCaseArgument Name="CustomActionLocation">CommandUI.Ribbon.ListView</spsf:TestCaseArgument>						
					</spsf:TestCaseArguments>
					<spsf:TestExpectedDeployResults>
						<spsf:TestExpectedDeployResult Type="ManualCheck">In document library 'Sample Tab' a custom tab 'DocLib Tab' is available http://demo2010a/Shared%20Documents/Forms/AllItems.aspx</spsf:TestExpectedDeployResult>
					</spsf:TestExpectedDeployResults>
				</spsf:TestCase>
			</spsf:TestCases>
		</spsf:Test>
    </spsf:MetaData>
  </HostData>
	<Arguments>

		<xi:include href="../../BaseArguments.include" parse="xml" xpointer="xmlns(p=http://schemas.microsoft.com/pag/gax-core) xpointer(/p:Arguments/*)" xmlns:xi="http://www.w3.org/2001/XInclude" />

		<xi:include href="../BaseFeatureArguments.include" parse="xml" xpointer="xmlns(p=http://schemas.microsoft.com/pag/gax-core) xpointer(/p:Arguments/*)" xmlns:xi="http://www.w3.org/2001/XInclude" />

		<xi:include href="BaseRibbonArguments.include" parse="xml" xpointer="xmlns(p=http://schemas.microsoft.com/pag/gax-core) xpointer(/p:Arguments/*)" xmlns:xi="http://www.w3.org/2001/XInclude" />

		<xi:include href="BaseRibbonArgumentsComplete.include" parse="xml" xpointer="xmlns(p=http://schemas.microsoft.com/pag/gax-core) xpointer(/p:Arguments/*)" xmlns:xi="http://www.w3.org/2001/XInclude" />

		<Argument Name="RibbonControlImage16HelloWorld" Required="true" >
			<ValueProvider Type="Evaluator" Expression="RibbonIcon_$(RibbonActionName)_HelloWorld_16.gif" />
		</Argument>
		<Argument Name="RibbonControlImage32HelloWorld" Required="true" >
			<ValueProvider Type="Evaluator" Expression="RibbonIcon_$(RibbonActionName)_HelloWorld_32.gif" />
		</Argument>

		<Argument Name="RibbonControlImage16GoodbyeWorld" Required="true" >
			<ValueProvider Type="Evaluator" Expression="RibbonIcon_$(RibbonActionName)_GoodbyeWorld_16.gif" />
		</Argument>
		<Argument Name="RibbonControlImage32GoodbyeWorld" Required="true" >
			<ValueProvider Type="Evaluator" Expression="RibbonIcon_$(RibbonActionName)_GoodbyeWorld_32.gif" />
		</Argument>

		<Argument Name="RibbonControlImage16LoveWorld" Required="true" >
			<ValueProvider Type="Evaluator" Expression="RibbonIcon_$(RibbonActionName)_LoveWorld_16.gif" />
		</Argument>
		<Argument Name="RibbonControlImage32LoveWorld" Required="true" >
			<ValueProvider Type="Evaluator" Expression="RibbonIcon_$(RibbonActionName)_LoveWorld_32.gif" />
		</Argument>
	</Arguments>
	<GatheringServiceData>
		<Wizard xmlns="http://schemas.microsoft.com/pag/gax-wizards" SchemaVersion="1.0">
			<Pages>
				<Page Type="SPALM.SharePointSoftwareFactory.Library.CustomWizardPages.FeatureSelectionPage, SPALM.SharePointSoftwareFactory.Library" />
				<xi:include href="BaseRibbonPages.include"  parse="xml" xpointer="xmlns(p=http://schemas.microsoft.com/pag/gax-wizards) xpointer(/p:Pages/*)" xmlns:xi="http://www.w3.org/2001/XInclude" />
			</Pages>
		</Wizard>
	</GatheringServiceData>

	<Actions CoordinatorServiceType="ConditionalCoordinator">

		<xi:include href="../../BaseStartingActions.include" parse="xml" xpointer="xmlns(p=http://schemas.microsoft.com/pag/gax-core) xpointer(/p:Actions/*)" xmlns:xi="http://www.w3.org/2001/XInclude" />

		<xi:include href="../BaseFeatureActions.include" parse="xml" xpointer="xmlns(p=http://schemas.microsoft.com/pag/gax-core) xpointer(/p:Actions/*)" xmlns:xi="http://www.w3.org/2001/XInclude" />

		<xi:include href="BaseRibbonActions.include" parse="xml" xpointer="xmlns(p=http://schemas.microsoft.com/pag/gax-core) xpointer(/p:Actions/*)" xmlns:xi="http://www.w3.org/2001/XInclude" />

		<xi:include href="../../BaseFinalActions.include" parse="xml" xpointer="xmlns(p=http://schemas.microsoft.com/pag/gax-core) xpointer(/p:Actions/*)" xmlns:xi="http://www.w3.org/2001/XInclude" />

		<!-- add button icon 16-->
		<Action
		  Name="AddIcon16HelloWorld"
		  Type="AddFileToItemAction"
		  DeploymentType="TemplateFile"
		  DeploymentPath="Images\$(SafeAppName)"
		  SourceFileName="Text/Ribbons/CustomAction16.gif"
		  TargetFileName="$(RibbonControlImage16HelloWorld)">
			<Input Name="ExcludeCondition" RecipeArgument="ProjectIsSandboxedSolution" />
      <Input Name="ParentProjectFolder" ActionOutput="CreateElementsXml.CreatedElementFolder" />
		</Action>
		<!-- add button icon 32-->
		<Action
		  Name="AddIcon32HelloWorld"
		  Type="AddFileToItemAction"
		  DeploymentType="TemplateFile"
		  DeploymentPath="Images\$(SafeAppName)"
		  SourceFileName="Text/Ribbons/CustomAction32.gif"
		  TargetFileName="$(RibbonControlImage32HelloWorld)">
			<Input Name="ExcludeCondition" RecipeArgument="ProjectIsSandboxedSolution" />
      <Input Name="ParentProjectFolder" ActionOutput="CreateElementsXml.CreatedElementFolder" />
		</Action>

		<!-- add button icon 16-->
		<Action
		  Name="AddIcon16GoodbyeWorld"
		  Type="AddFileToItemAction"
		  DeploymentType="TemplateFile"
		  DeploymentPath="Images\$(SafeAppName)"
		  SourceFileName="Text/Ribbons/CustomAction16.gif"
		  TargetFileName="$(RibbonControlImage16GoodbyeWorld)">
			<Input Name="ExcludeCondition" RecipeArgument="ProjectIsSandboxedSolution" />
      <Input Name="ParentProjectFolder" ActionOutput="CreateElementsXml.CreatedElementFolder" />
		</Action>
		<!-- add button icon 32-->
		<Action
		  Name="AddIcon32GoodbyeWorld"
		  Type="AddFileToItemAction"
		  DeploymentType="TemplateFile"
		  DeploymentPath="Images\$(SafeAppName)"
		  SourceFileName="Text/Ribbons/CustomAction32.gif"
		  TargetFileName="$(RibbonControlImage32GoodbyeWorld)">
			<Input Name="ExcludeCondition" RecipeArgument="ProjectIsSandboxedSolution" />
      <Input Name="ParentProjectFolder" ActionOutput="CreateElementsXml.CreatedElementFolder" />
		</Action>

		<!-- add button icon 16-->
		<Action
		  Name="AddIcon16LoveWorld"
		  Type="AddFileToItemAction"
		  DeploymentType="TemplateFile"
		  DeploymentPath="Images\$(SafeAppName)"
		  SourceFileName="Text/Ribbons/CustomAction16.gif"
		  TargetFileName="$(RibbonControlImage16LoveWorld)">
			<Input Name="ExcludeCondition" RecipeArgument="ProjectIsSandboxedSolution" />
      <Input Name="ParentProjectFolder" ActionOutput="CreateElementsXml.CreatedElementFolder" />
		</Action>
		<!-- add button icon 32-->
		<Action
		  Name="AddIcon32LoveWorld"
		  Type="AddFileToItemAction"
		  DeploymentType="TemplateFile"
		  DeploymentPath="Images\$(SafeAppName)"
		  SourceFileName="Text/Ribbons/CustomAction32.gif"
		  TargetFileName="$(RibbonControlImage32LoveWorld)">
			<Input Name="ExcludeCondition" RecipeArgument="ProjectIsSandboxedSolution" />
      <Input Name="ParentProjectFolder" ActionOutput="CreateElementsXml.CreatedElementFolder" />
		</Action>
		
	</Actions>

</Recipe>